package com.cyw.note.manage.domain.bo;

import com.cyw.common.core.validate.AddGroup;
import com.cyw.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.cyw.common.core.domain.BaseEntity;

/**
 * 文章管理业务对象 myproject_note
 *
 * @author myproject
 * @date 2022-08-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("文章管理业务对象")
public class MyprojectNoteBo extends BaseEntity {

    /**
     * 文章id
     */
    @ApiModelProperty(value = "文章id", required = true)
    @NotBlank(message = "文章id不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 文章内容
     */
    @ApiModelProperty(value = "文章内容", required = true)
    @NotBlank(message = "文章内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 文章标题
     */
    @ApiModelProperty(value = "文章标题", required = true)
    @NotBlank(message = "文章标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", required = true)
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 笔记分类类型
     */
    @ApiModelProperty(value = "笔记分类类型", required = true)
//    @NotBlank(message = "笔记分类类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;


}
